package cn.highset.modules.base.serviceimpl.mybatis;

import cn.highset.modules.base.dao.mapper.ActivityMapper;
import cn.highset.modules.base.entity.Activity;
import cn.highset.modules.base.service.mybatis.IActivityService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Victor
 */
@Service
public class IActivityServiceImpl extends ServiceImpl<ActivityMapper, Activity> implements IActivityService {
    @Override
    public void incrCollectCount(String id) {
        baseMapper.incrCollectCount(id);
    }

    @Override
    public void dimCollectCount(String id) {
        baseMapper.dimCollectCount(id);
    }

    @Override
    public Page<Activity> getCollectListByUserid(Page page , String userid) {
        return baseMapper.getCollectListByUserid(page,userid);
    }
}
